{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "cf82d005",
   "metadata": {},
   "source": [
    "* week02笔记补充\n",
    "* 2023-10-30\n",
    "* python课程"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "id": "b6036f72",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "not an odd minute.\n"
     ]
    }
   ],
   "source": [
    "# 补充书本第四页代码运行\n",
    "from datetime import datetime\n",
    "\n",
    "odds = [ 1, 3, 5, 7 , 9, 11, 13, 15, 17, 19, \n",
    "       21, 23, 25, 27, 29, 31, 33, 35, 37, 39, \n",
    "       41, 43, 45, 47, 49, 51, 53, 55, 57, 59 ]\n",
    "right_this_minute = datetime.today().minute\n",
    "    \n",
    "if right_this_minute in odds:\n",
    "    print(\"this minute seems a little odd.\")\n",
    "else:\n",
    "    print(\"not an odd minute.\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "668363f3",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.11.4"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
